var fs = require('fs');//文件读写
function copyIt(from, to) {
    console.log('index.html')
    fs.writeFileSync(to, fs.readFileSync(from));
    //fs.createReadStream(src).pipe(fs.createWriteStream(dst));大文件复制
  }
  
  copyIt('index.html','./dist/index.html');
  copyIt('animate.css','./dist/animate.css');